package cn.powertime.evaluation.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ReqPostingsAddVo implements Serializable {

    @ApiModelProperty(value="帖子标题",name="title")
    @NotBlank(message = "帖子标题不能为空")
    private String title;
    @ApiModelProperty(value="帖子内容",name="content")
    @NotBlank(message = "帖子内容不能为空")
    private String content;
    @ApiModelProperty(value="类型",name="typeId")
    @NotNull(message = "帖子类型不能为空")
    private Long typeId;
    @ApiModelProperty(value="标签集合",name="labelList")
    @Valid
    @NotNull(message = "labelList参数不能为空！")
    @NotEmpty(message = "帖子标签不能为空")
    private List<ReqPostingsLabelVo> labelList;




}
